import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

import { SlagRoutingModule } from './slag-routing.module';
import {SlagComponent} from "./slag.component";
import {SlagService} from "./slag.service";
import {FormsModule, ReactiveFormsModule} from "@angular/forms";
import {StompConfig, StompService} from '@stomp/ng2-stompjs';
import {RabbitConfig} from "../../../../app.config";

@NgModule({
  imports: [
    CommonModule,
    SlagRoutingModule,
    FormsModule,
    ReactiveFormsModule
  ],
  declarations: [SlagComponent ],
  providers:[
    SlagService,
    StompService,
    {
      provide: StompConfig,
      useValue: RabbitConfig
    }
  ]
})
export class SlagModule { }
